package com.zswl.decorate.util;


import com.hwangjr.rxbus.Bus;
import com.hwangjr.rxbus.RxBus;

/**
 * Created by Administrator on 2018/4/11 0011.
 */

public class RxBusUtil {
    private static Bus bus = RxBus.get();

    public static void register(Object object) {
        bus.register(object);

    }


    public static void unRegister(Object object) {
        if (bus.hasRegistered(object)){
            bus.unregister(object);
        }
    }

    public static void postEvent(Object object) {
        bus.post(object);
    }

}
